package org.lmind.scale.study

import java.io.Closeable

class Base {
  def fn1 = println("base")
}

trait Trait1 {
   def fn = println("Trait1")
}

trait Trait2 {
  def fn = println("Trait2")
}

class Extend1 extends Base with Trait1 with Trait2 {
  override def fn() = super.fn
  
  def fn2:Function1[Int, Int] = (a:Int) => a
}

object Extend {
  
  def curry(a:Int)(b:Int) = a + b
  
  def curry2(a:Int, b:Int) = a + b
  
  def main(args: Array[String]) {
    val a = curry(1)(_)
  }
}